﻿<mpc:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mpc="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Microsoft_WebAnalytics_Behaviors="clr-namespace:Microsoft.WebAnalytics.Behaviors;assembly=Microsoft.WebAnalytics.Behaviors" 
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" xmlns:ec="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    x:Class="TestApp.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}">

    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
        <Grid.RowDefinitions>
        	<RowDefinition Height="Auto"/>
        	<RowDefinition Height="*"/>
        </Grid.RowDefinitions>

    	<controls:Pivot x:Name="Pivot" Grid.Row="1" Title="{StaticResource AppTitle}">
    		<i:Interaction.Triggers>
    			<i:EventTrigger EventName="SelectionChanged">
    				<Microsoft_WebAnalytics_Behaviors:TrackAction/>
    			</i:EventTrigger>
    		</i:Interaction.Triggers>
    		<controls:PivotItem x:Name="Basics" Header="basics">
    			<StackPanel>
    				<Button Content="Button Click" x:Name="button1">
    					<i:Interaction.Triggers>
    						<i:EventTrigger EventName="Click">
    							<Microsoft_WebAnalytics_Behaviors:TrackAction Category="Page1" Value="2"/>
    						</i:EventTrigger>
    					</i:Interaction.Triggers>
    				</Button>
    				<Button x:Name="PivotControlButton" Content="Pivot Control">
    					<i:Interaction.Triggers>
    						<i:EventTrigger EventName="Click">
    							<ec:NavigateToPageAction TargetPage="/PivotPage1.xaml"/>
    						</i:EventTrigger>
    					</i:Interaction.Triggers>
    				</Button>
    			</StackPanel>
    		</controls:PivotItem>
    		<controls:PivotItem x:Name="Media" Header="media">
    			<StackPanel>
    				<Button x:Name="MediaElement" Content="Media Element">
    					<i:Interaction.Triggers>
    						<i:EventTrigger EventName="Click">
    							<ec:NavigateToPageAction TargetPage="/MediaElementPage.xaml"/>
    						</i:EventTrigger>
    					</i:Interaction.Triggers>
    				</Button>
    				<Button x:Name="SSME" Content="Smooth Streaming Media Element">
    					<i:Interaction.Triggers>
    						<i:EventTrigger EventName="Click">
    							<ec:NavigateToPageAction TargetPage="/SSMEPage.xaml"/>
    						</i:EventTrigger>
    					</i:Interaction.Triggers>
    				</Button>
    				<Button x:Name="MMPPF">
    					<i:Interaction.Triggers>
    						<i:EventTrigger EventName="Click">
    							<ec:NavigateToPageAction TargetPage="/MMPPFPage.xaml"/>
    						</i:EventTrigger>
    					</i:Interaction.Triggers>
    					<TextBlock TextWrapping="Wrap" Text="Microsoft Media Platform: Player Framework" TextAlignment="Center"/>
    				</Button>
    			</StackPanel>
    		</controls:PivotItem>
    	</controls:Pivot>
    </Grid>
    
</mpc:PhoneApplicationPage>